package net.edisoft.scheduler;

import java.io.IOException;
import java.text.ParseException;
import java.util.Map;

import javax.xml.transform.TransformerException;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.w3c.dom.DOMException;
 
public class SchedulerJob implements Job {
 
 public void execute(JobExecutionContext context)
 throws JobExecutionException {
 
 Map dataMap = context.getJobDetail().getJobDataMap();
 SchedulerTask task = (SchedulerTask) dataMap.get("schedulerTask");
 try {
	try {
		task.executeInternal();
	} catch (DOMException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (ParseException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
} catch (TransformerException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}
 }
}
